<template>
        <div>
           <!-- <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
                <van-swipe-item>1</van-swipe-item>
                <van-swipe-item>2</van-swipe-item>
                <van-swipe-item>3</van-swipe-item>
                <van-swipe-item>4</van-swipe-item>
            </van-swipe> -->
            <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
                <van-swipe-item v-for="(item, index) in list" :key="index">
                    <img :src="item.image" alt=""/>
                </van-swipe-item>
            </van-swipe>
        </div>
</template>

<script>
export default {
    name:'Swipe',
    props:{
        list:{
            type:Array,
        }
    },
    data(){
        return{
            
        }
    },
    
    
}
</script>

<style lang='scss'>
.my-swipe{
    img{
        width: 100%;
    }
}
</style>